package com.example.moneybook.controller;

import com.example.moneybook.dto.ResponseResult;
import com.example.moneybook.dto.TransferDto;
import com.example.moneybook.service.TransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 包
 * @Date: 2023/3/1 13:15
 * Description:
 */
@RestController
@RequestMapping("transfer")
public class TransferController {

    @Autowired
    TransferService transferService;

    @PostMapping("addtransfer")
    public ResponseResult addTransfer(@RequestBody TransferDto transferDto){
        return transferService.addTransfer(transferDto);
    }
}
